package cn.suimg.neo4j.graph;

import cn.suimg.neo4j.annotation.DynamicQuery;
import cn.suimg.neo4j.annotation.OriginalId;
import cn.suimg.neo4j.relationship.PublishRelationship;
import cn.suimg.neo4j.relationship.SingRelationship;
import lombok.Data;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;

@Data
@NodeEntity(label = "歌手")
@DynamicQuery(relationship = {SingRelationship.class, PublishRelationship.class},graph = {SongGraph.class,AlbumGraph.class})
public class SingerGraph implements NeoGraph {

    @Id
    @GeneratedValue
    private Long id;

    @OriginalId
    private Integer singerId;

    /**
     * 歌手姓名
     */
    private String name;

    /**
     * 头像地址
     */
    private String avatarUrl;

    /**
     * 歌手简介
     */
    private String profile;



}
